package name.huzhenbo.java.patterns.proxy;

class ProductImplementation implements Product {
    private float weight;
    private long id;

    public long getId() {
        return id;
    }

    public void setWeight(float weight) {
        this.weight = roundUp(weight);
    }

    public float getWeight() {
        return weight;
    }

    private float roundUp(float weight) {
        // omitted the actual implementation
        return weight + 1.0f;
    }
}
